<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>贝叶斯曲线圆弧 - ZzmHub Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="ZzmHub" /><meta name="description" content="使用径向渐变radial-gradient() 使用径向渐变radial-gradient()画贝叶斯曲线圆弧 1 2 3 4 5 6 7 8 9 #grad { background-image: radial-gradient(shape size at position," /><meta name="keywords" content="Hugo, theme, even" />






<meta name="generator" content="Hugo 0.69.2 with theme even" />


<link rel="canonical" href="https://meilanziqing.gitee.io/zhi-blogs/post/js%E5%9F%BA%E7%A1%80/%E5%AD%A6%E5%88%B0%E4%BA%86/" />
<link rel="apple-touch-icon" sizes="180x180" href="/zhi-blogs/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/zhi-blogs/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/zhi-blogs/favicon-16x16.png">
<link rel="manifest" href="/zhi-blogs/manifest.json">
<link rel="mask-icon" href="/zhi-blogs/safari-pinned-tab.svg" color="#5bbad5">



<link href="/zhi-blogs/sass/main.min.4eb71590ad024de2ebb1b5eef94cbb645b7e63e6b9c4c837355530a75e112ce1.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="贝叶斯曲线圆弧" />
<meta property="og:description" content="使用径向渐变radial-gradient() 使用径向渐变radial-gradient()画贝叶斯曲线圆弧 1 2 3 4 5 6 7 8 9 #grad { background-image: radial-gradient(shape size at position," />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://meilanziqing.gitee.io/zhi-blogs/post/js%E5%9F%BA%E7%A1%80/%E5%AD%A6%E5%88%B0%E4%BA%86/" />
<meta property="article:published_time" content="2020-09-25T16:55:23+08:00" />
<meta property="article:modified_time" content="2020-09-25T16:55:23+08:00" />
<meta itemprop="name" content="贝叶斯曲线圆弧">
<meta itemprop="description" content="使用径向渐变radial-gradient() 使用径向渐变radial-gradient()画贝叶斯曲线圆弧 1 2 3 4 5 6 7 8 9 #grad { background-image: radial-gradient(shape size at position,">
<meta itemprop="datePublished" content="2020-09-25T16:55:23&#43;08:00" />
<meta itemprop="dateModified" content="2020-09-25T16:55:23&#43;08:00" />
<meta itemprop="wordCount" content="416">



<meta itemprop="keywords" content="贝叶斯曲线圆弧," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="贝叶斯曲线圆弧"/>
<meta name="twitter:description" content="使用径向渐变radial-gradient() 使用径向渐变radial-gradient()画贝叶斯曲线圆弧 1 2 3 4 5 6 7 8 9 #grad { background-image: radial-gradient(shape size at position,"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/zhi-blogs/" class="logo">ZzmHub</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/zhi-blogs/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/zhi-blogs/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/zhi-blogs/categories/">
        <li class="mobile-menu-item">分类</li>
      </a><a href="/zhi-blogs/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/zhi-blogs/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/zhi-blogs/" class="logo">ZzmHub</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/zhi-blogs/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/zhi-blogs/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/zhi-blogs/categories/">分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/zhi-blogs/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/zhi-blogs/about/">关于</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">贝叶斯曲线圆弧</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-09-25 </span>
        <div class="post-category">
            <a href="/zhi-blogs/categories/js%E5%9F%BA%E7%A1%80/"> Js基础 </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#使用径向渐变radial-gradient">使用径向渐变radial-gradient()</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h3 id="使用径向渐变radial-gradient">使用径向渐变radial-gradient()</h3>
<p>使用径向渐变radial-gradient()画贝叶斯曲线圆弧</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-css" data-lang="css">
<span class="p">#</span><span class="nn">grad</span> <span class="p">{</span>
  <span class="k">background-image</span><span class="p">:</span> <span class="nb">radial-gradient</span><span class="p">(</span><span class="n">shape</span> <span class="n">size</span> <span class="n">at</span> <span class="n">position</span><span class="p">,</span> <span class="kc">start</span><span class="o">-</span><span class="kc">color</span><span class="p">,</span> <span class="err">...</span><span class="p">,</span> <span class="kc">last</span><span class="o">-</span><span class="kc">color</span><span class="p">);</span>

  <span class="err">======</span>

  <span class="k">background-image</span><span class="p">:</span> <span class="nb">radial-gradient</span><span class="p">(</span><span class="mi">10</span><span class="kt">px</span> <span class="n">at</span> <span class="mi">8</span><span class="kt">px</span> <span class="mi">0</span><span class="kt">px</span><span class="p">,</span> <span class="kc">transparent</span> <span class="mi">8</span><span class="kt">px</span><span class="p">,</span> <span class="mh">#3c77ed</span> <span class="mi">8</span><span class="kt">px</span><span class="p">);</span>
<span class="p">}</span>

</code></pre></td></tr></table>
</div>
</div><table>
<thead>
<tr>
<th>值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>shape</td>
<td>确定圆的类型:</td>
</tr>
<tr>
<td></td>
<td>ellipse (默认): 指定椭圆形的径向渐变。</td>
</tr>
<tr>
<td></td>
<td>circle ：指定圆形的径向渐变</td>
</tr>
<tr>
<td>size</td>
<td>定义渐变的大小，可能值：</td>
</tr>
<tr>
<td></td>
<td>farthest-corner (默认) : 指定径向渐变的半径长度为从圆心到离圆心最远的角</td>
</tr>
<tr>
<td></td>
<td>closest-corner ： 指定径向渐变的半径长度为从圆心到离圆心最近的角</td>
</tr>
<tr>
<td></td>
<td>closest-side ：指定径向渐变的半径长度为从圆心到离圆心最近的边</td>
</tr>
<tr>
<td></td>
<td>farthest-side ：指定径向渐变的半径长度为从圆心到离圆心最远的边</td>
</tr>
<tr>
<td>position</td>
<td>定义渐变的位置。可能值：</td>
</tr>
<tr>
<td></td>
<td>center（默认）：设置中间为径向渐变圆心的纵坐标值。</td>
</tr>
<tr>
<td></td>
<td>top：设置顶部为径向渐变圆心的纵坐标值。</td>
</tr>
<tr>
<td></td>
<td>bottom：设置底部为径向渐变圆心的纵坐标值。</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>10px</code>： farthest-corner，最大为 <code>8px</code> ，大于 <code>8px</code> 默认为 <code>8px</code>；<br>
<code>8px 0px</code>： 定义渐变的位置，按照 x，y 轴，<code>(0 0) =&gt; 左上，(8px 0) =&gt; 右上，(0 8px) =&gt; 左下，(8px 8px) =&gt; 右下</code></p>
</blockquote>
<p>例图：</p>
<p><img src="https://i.loli.net/2020/05/25/X3fBgKdYVI48TqO.png" alt=""></p>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">ZzmHub</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2020-09-25
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/zhi-blogs/tags/%E8%B4%9D%E5%8F%B6%E6%96%AF%E6%9B%B2%E7%BA%BF%E5%9C%86%E5%BC%A7/">贝叶斯曲线圆弧</a>
          </div>
      <nav class="post-nav">
        
        <a class="next" href="/zhi-blogs/post/js%E5%9F%BA%E7%A1%80/%E5%8F%98%E9%87%8F%E6%8F%90%E5%8D%87/">
            <span class="next-text nav-default">Js变量提升</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:gdmec.zhi@email.com" class="iconfont icon-email" title="email"></a>
      <a href="https://github.com/zhimianhub" class="iconfont icon-github" title="github"></a>
  <a href="https://meilanziqing.gitee.io/zhi-blogs/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2017 - 
    2020
    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">ZzmHub</span>
  </span>
</div>
    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/zhi-blogs/js/main.min.d7b7ada643c9c1a983026e177f141f7363b4640d619caf01d8831a6718cd44ea.js"></script>








</body>
</html>
